/**************************
* @Summary
* @Author 20009200303 赵传博
* @Date 2022/3/31
*****************************/

#ifndef EX2_DATE_H
#define EX2_DATE_H
#include "common.h"

class Date {
private:
    int year;
    int month;
    int day;
    bool isLeap;
public:
    Date(int year, int month, int day);
    void setYear(int year);
    void setMonth(int month);
    void setDay(int day);
    void printMe();
    Date plusOneDay();
    Date plusOneMonth();
    Date plusOneYear();
    int date2Calendar();
    Date firstMonthday();
    friend ostream& operator<<(ostream& os, const Date& date);
};


#endif //EX2_DATE_H
